package java06;

import java.util.Scanner;

public class Main042 {

	public static void main(String[] args) {
	    Scanner sc = new Scanner(System.in);
	    Resouce resource = null;
	    try{
	        resource = new Resouce();
	        resource.open(sc.nextLine());
	         /*这里放置你的答案*/
	        System.out.println("resource open success");
	    }catch(Exception e){
	    	System.out.println(e);
	    }try{
	    	resource.close();
	    	System.out.println("resource release success");
	    }catch(RuntimeException e){
	    	System.out.println(e);
	    }finally {
			resource.close();
		}
	    sc.close();
	}
	

}
